<?php

/**
 * usage of class:
 * 1. new sheet: $wchatSheet = new BWechatSheet(), if not specify owner, owner is current space, table = 'main'
 * if specify table name, such as 'wechatTransaction' then data will save to specify table
 * 2. get row of data
 * $rowData = $wchatSheet->getListById($id), or $wchatSheet->getList($context);
 * 3.get view data(array of list)
 * $view = $wchatSheet->getView($context), 
 * 4.get col value in row
 * $name = $list->getItem('name')->getValue()
 */
class BWechatSheet extends BTreeTable {

    //put your code here

    public function __construct($owner = NULL, $tableName = NULL) {
        $treeItem = new BMWechatMeta();
        if ($owner == NULL) {
            $owner = Blyn::app()->getActiveSpace();
        }
        parent::__construct($treeItem, $owner, $tableName);
    }

}
